var defaultSettings = {
	"quickSelect":true,
	"draggable": false,
	"hideQuestTracker": false,
	"hidePreCombatUI": false,
	"statCollection": false,
	"winScreen": false,
	"frontyard": false,
    "chatAlignment": "left",
    "chatHeight": 516,
    "chatWidth": 372,
    "emoticons":true,
    "highlightUsername": true,
    "filter1": "",
    "filter2": "",
    "filter3": "",
}

var settings = new Store("settings", defaultSettings);

chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {
	if (request.action == 'flieGetOptions') {
		sendResponse(settings.toObject());
	}
});

function reset() {
	settings.fromObject(defaultSettings);
}